.index-root{
    width: 100vw;
    height: 100vh;

}

.bookinfo-box{
    margin: 10px auto 0;
    width: calc(100% - 30px);
    border-radius: 5px;
    display: flex;
    overflow: hidden;
    box-shadow: 1px 1px 3px 2px rgba(0, 0, 0, 0.3);
    .bookcover{
        width: 60px;
        height: 60px;
        border-radius: 5px;
        margin: 15px;
    }
    .op-box{
        margin-left: auto;
        display: inline-flex;
        background-color: #f2f2f2;
        .btn{
            margin: auto 10px;
            background-color: orange;
            font-size: 12px;
            line-height: 36px;
            height: 36px;
            padding: 0 10px;
            color: #fff;
            font-weight: 900;
        }
    }
    .infobox{
        flex-grow: 1;
        padding: 10px 0;
        h3{
            font-weight: 700;
            font-size: 16px;
        }
        p{
            margin: 0;
            font-size: 12px;
            line-height: 15px;
            color: #666;
            width: 150px;
            height: 30px;
            overflow : hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
    }
}

.sendop-box{
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    width: 100%;
    height: 60px;
    border-top: solid 1px #ccc;
    .inputitem{
        background-color: #eee;
        padding: 0 10px;
        border-radius: 5px 0 0 5px;
        width: 280px;
    }
    .sendbtn{
        background-color: orange;
        border-radius: 0 5px 5px 0;
        width: calc(100% - 280px);
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        height: 44px;
    }
}

.msg-container{
    margin-top: 10px;
    width: 100%;
    height: calc(100% - 215px);
    background-color: #eee;
    overflow-y: auto;
    .msglist-warp{
        width: calc(100% - 40px);
        margin: auto;
        padding: 15px 0;
        height: auto;
        .msg-divider{
            font-size: 14px;
            color: #999;
            border-color: #ccc;
        }
    }
}

.msg-item{
    margin: 15px 0;
    padding: 0;
    display: flex;
    .msg-fromme,.msg-tome{
        display: inline-flex;
        align-items: center;
        p{
            max-width: 220px;
            margin: 0 10px;
            padding: 5px 10px;
            font-size: 14px;
            border-radius: 5px;
            box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.4);
        }
    }
    .msg-fromme{
        margin-right: auto;
        p{
            background-color: orange;
            color: #fff;
        }
    }
    .msg-tome{
        margin-left: auto;
        p{
            background-color: #fff;
            color: #333;
        }
    }
}